package com.bdmc.device.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 血糖数据业务对象 dev_glucose_data
 *
 * @author bdmc
 * @date 2023-07-31
 */

@Data
public class DevGlucoseDataBo {

    /**
     * 
     */
    private Long glucoseId;

    /**
     * 设备ID，必须
     */
    private String imei;

    /**
     * 血糖，例如 9.7
     */
    private Long bloodGlu;

    /**
     * 状态，可选
     */
    private String bgState;

    /**
     * 测量时间，可选
     */
    private String testTime;

    private String deviceid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dataTime;
}
